package com.horsen.service.edu.model.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 课程列表VO
 *
 * @author Horsen
 */
@Data
@ApiModel("课程列表VO")
public class CourseListVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("课程ID")
    private String id;

    @ApiModelProperty("课程标题")
    private String title;

    @ApiModelProperty("课程一级分类")
    private String subjectParentTitle;

    @ApiModelProperty("课程二级分类")
    private String subjectTitle;

    @ApiModelProperty("课程讲师姓名")
    private String teacherName;

    @ApiModelProperty("讲师ID")
    private String teacherId;

    @ApiModelProperty("讲师头像")
    private String teacherAvatar;

    @ApiModelProperty("总课时")
    private Integer lessonNum;

    @ApiModelProperty("课程售价(0免费)")
    private String price;

    @ApiModelProperty("课程封面")
    private String cover;

    @ApiModelProperty("销售数量")
    private Long buyCount;

    @ApiModelProperty("浏览数量")
    private Long viewCount;

    @ApiModelProperty("课程状态(draft未发布,pass已发布,fail已下架)")
    private String status;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy.MM.dd")
    private Date gmtCreate;
}
